import request from "@/utils/request";
export interface IAddBannersParams{
  img:string
  alt:string
  ling:string
}

export function addBanner (params:IAddBannersParams){
  return request({
    url:'/banner/add',
    method:'POST',
    data:params
  })
}

export function getBannerList(){
  return request({
    url:'/banner/list'
  })
}

export function deleBanner(params:{bannerid:string}){
  return request({
    url:'banner/delete',
    data:params
  })
}